package Vista;
import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import java.awt.GridBagLayout;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import javax.swing.JTextField;
import javax.swing.JButton;
import javax.swing.SwingConstants;
import java.awt.Font;


public class Pantalla extends JFrame {

	private JPanel contentPane;
	private JTextField textFieldNumero;
	private JTextField textFieldMensaje;
	private JTextField textField;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					Pantalla frame = new Pantalla();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public Pantalla() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 300);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		contentPane.setLayout(new BorderLayout(0, 0));
		setContentPane(contentPane);
		
		JLabel lblSocio = new JLabel("Socios");
		lblSocio.setFont(new Font("Tahoma", Font.PLAIN, 23));
		lblSocio.setHorizontalAlignment(SwingConstants.CENTER);
		contentPane.add(lblSocio, BorderLayout.NORTH);
		
		JPanel panel = new JPanel();
		contentPane.add(panel, BorderLayout.CENTER);
		GridBagLayout gbl_panel = new GridBagLayout();
		gbl_panel.columnWidths = new int[]{55, 41, 0, 127, 107, 95, 0};
		gbl_panel.rowHeights = new int[]{0, 0, 0, 0, 17, 0, 0};
		gbl_panel.columnWeights = new double[]{0.0, 1.0, 0.0, 1.0, 0.0, 0.0, Double.MIN_VALUE};
		gbl_panel.rowWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
		panel.setLayout(gbl_panel);
		
		JLabel lblNumero = new JLabel("Numero");
		GridBagConstraints gbc_lblNumero = new GridBagConstraints();
		gbc_lblNumero.insets = new Insets(0, 0, 5, 5);
		gbc_lblNumero.gridx = 0;
		gbc_lblNumero.gridy = 1;
		panel.add(lblNumero, gbc_lblNumero);
		
		textFieldNumero = new JTextField();
		GridBagConstraints gbc_textFieldNumero = new GridBagConstraints();
		gbc_textFieldNumero.gridwidth = 2;
		gbc_textFieldNumero.insets = new Insets(0, 0, 5, 5);
		gbc_textFieldNumero.fill = GridBagConstraints.HORIZONTAL;
		gbc_textFieldNumero.gridx = 1;
		gbc_textFieldNumero.gridy = 1;
		panel.add(textFieldNumero, gbc_textFieldNumero);
		textFieldNumero.setColumns(10);
		
		JButton btnNuevo = new JButton("Nuevo");
		GridBagConstraints gbc_btnNuevo = new GridBagConstraints();
		gbc_btnNuevo.insets = new Insets(0, 0, 5, 5);
		gbc_btnNuevo.gridx = 3;
		gbc_btnNuevo.gridy = 1;
		panel.add(btnNuevo, gbc_btnNuevo);
		
		JButton btnConsulta = new JButton("Consulta");
		GridBagConstraints gbc_btnConsulta = new GridBagConstraints();
		gbc_btnConsulta.insets = new Insets(0, 0, 5, 5);
		gbc_btnConsulta.gridx = 4;
		gbc_btnConsulta.gridy = 1;
		panel.add(btnConsulta, gbc_btnConsulta);
		
		JButton btnBorrar = new JButton("Borrar");
		GridBagConstraints gbc_btnBorrar = new GridBagConstraints();
		gbc_btnBorrar.insets = new Insets(0, 0, 5, 0);
		gbc_btnBorrar.gridx = 5;
		gbc_btnBorrar.gridy = 1;
		panel.add(btnBorrar, gbc_btnBorrar);
		
		JLabel lblNombre = new JLabel("Nombre");
		GridBagConstraints gbc_lblNombre = new GridBagConstraints();
		gbc_lblNombre.insets = new Insets(0, 0, 5, 5);
		gbc_lblNombre.gridx = 0;
		gbc_lblNombre.gridy = 3;
		panel.add(lblNombre, gbc_lblNombre);
		
		textFieldMensaje = new JTextField();
		GridBagConstraints gbc_textFieldMensaje = new GridBagConstraints();
		gbc_textFieldMensaje.insets = new Insets(0, 0, 5, 0);
		gbc_textFieldMensaje.gridwidth = 3;
		gbc_textFieldMensaje.fill = GridBagConstraints.HORIZONTAL;
		gbc_textFieldMensaje.gridx = 3;
		gbc_textFieldMensaje.gridy = 3;
		panel.add(textFieldMensaje, gbc_textFieldMensaje);
		textFieldMensaje.setColumns(10);
		
		JLabel lblMensaje = new JLabel("Mensaje");
		GridBagConstraints gbc_lblMensaje = new GridBagConstraints();
		gbc_lblMensaje.insets = new Insets(0, 0, 0, 5);
		gbc_lblMensaje.gridx = 0;
		gbc_lblMensaje.gridy = 5;
		panel.add(lblMensaje, gbc_lblMensaje);
		
		textField = new JTextField();
		GridBagConstraints gbc_textField = new GridBagConstraints();
		gbc_textField.gridwidth = 3;
		gbc_textField.insets = new Insets(0, 0, 0, 5);
		gbc_textField.fill = GridBagConstraints.HORIZONTAL;
		gbc_textField.gridx = 3;
		gbc_textField.gridy = 5;
		panel.add(textField, gbc_textField);
		textField.setColumns(10);
	}

}
